import request from '@/utils/request'

export function getMerchantPage(params) {
  return request({
    url: '/manage/merchant/shopList',
    method: 'post',
    data: params,
  })
}
export function setMerchantShopEdit(params) {
  return request({
    url: '/manage/merchant/updateShop',
    method: 'post',
    data: params,
  })
}
export function setMerchantShopStatus(params) {
  return request({
    url: '/manage/merchant/changeShopStatus',
    method: 'post',
    data: params,
  })
}
//店铺申请上架
export function setMerchantShopUpOrDown(params) {
  return request({
    url: '/manage/merchant/applyShopOnline',
    method: 'post',
    data: params,
  })
}
//商店上架审核
export function setMerchantShopAudit(params) {
  return request({
    url: '/manage/merchant/auditShop',
    method: 'post',
    data: params,
  })
}
export function setMerchantShopDetail(params) {
  return request({
    url: '/manage/merchant/shopDetail',
    method: 'post',
    data: params,
  })
}
